<?php

namespace common\models\cms;

use Yii;

/**
 * This is the model class for table "{{%cms_special_depend}}".
 *
 * @property int $id
 * @property int $special_id 专题ID
 * @property string $depend 关联扩展名
 * @property int $depend_id 关联扩展ID
 * @property int $map_id
 * @property string|null $map_data
 * @property int $listorder
 * @property int $status
 * @property int $created_at
 * @property int $updated_at
 * @property int $deleted_at
 */
class CmsSpecialDepend extends \common\db\ActiveRecord {

    const DEPEND_UVS = 'uvs';
    const DEPEND_GQS = 'gqs';

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%cms_special_depend}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['special_id', 'depend_id', 'map_id', 'listorder', 'status', 'created_at', 'updated_at', 'deleted_at'], 'integer'],
            [['depend'], 'required'],
            [['depend'], 'string', 'max' => 50],
            [['map_data'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'special_id' => '专题ID',
            'depend' => '关联扩展名',
            'depend_id' => '关联扩展ID',
            'map_id' => 'Map ID',
            'map_data' => 'Map Data',
            'listorder' => 'Listorder',
            'status' => 'Status',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
            'deleted_at' => 'Deleted At',
        ];
    }

}
